import http from '../http'
export default {
    //查询设置状态
    getUserInstall(params,callback){
        http.get('userInstall/app/getUserInstall',{params},callback);
    },

    //会员修改打赏隐私设置状态
    updateGeschenkeStatus(url,params,callback){
        http.put('userInstall/app/updateGeschenkeStatus/'+url,{params},callback);
    },
    //会员修改财富榜单隐私设置状态
    updateFortunelisteStatus(url,params,callback){
        http.put('userInstall/app/updateFortunelisteStatus/'+url,{params},callback);
    },

    //会员修改接受新消息状态设置
    updatenewMsgStatus(url,params,callback){
        http.put('userInstall/app/updatenewMsgStatus/'+url,{params},callback);
    },

    //会员修改动态通知状态设置
    updatedynamicsStatus(url,params,callback){
        http.put('userInstall/app/updatedynamicsStatus/'+url,{params},callback);
    },
    //会员修改点赞通知状态设置
    updatesnapStatus(url,params,callback){
        http.put('userInstall/app/updatesnapStatus/'+url,{params},callback);
    },
    //会员修改打赏通知状态设置
    updaterewardStatus(url,params,callback){
        http.put('userInstall/app/updaterewardStatus/'+url,{params},callback);
    },
    //查看会员身份证认证状态
    getUserIdentityAuth(url,params,callback){
        http.get('userIdentityAuth/getUserIdentityAuth',params,callback);
    },
    //绑定用户微信
    getWechat(wxCode,params,callback){
        http.patch(`/user/data/wechat?wxCode=${wxCode}`,params,callback);
    },
    //解绑微信
    dropWechat(params,callback){
        http.delete('/user/data/wechat',params,callback);
    }
}